Three-dimensional motorized gears